
import 'gis_socket_info.dart';

class GisSocketRes {
    GisSocketInfo data;
    String direction;
    String requestMethod;
    String responseType;

    GisSocketRes({this.data, this.direction, this.requestMethod, this.responseType});

    factory GisSocketRes.fromJson(Map<String, dynamic> json) {
        return GisSocketRes(
            data: json['data'] != null ? GisSocketInfo.fromJson(json['data']) : null,
            direction: json['direction'], 
            requestMethod: json['requestMethod'], 
            responseType: json['responseType'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['direction'] = this.direction;
        data['requestMethod'] = this.requestMethod;
        data['responseType'] = this.responseType;
        if (this.data != null) {
            data['data'] = this.data.toJson();
        }
        return data;
    }
}